# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-click-config-file
_pkgname=click_config_file
pkgver=0.6.0
pkgrel=5
pkgdesc='Configuration file support for click applications.'
arch=('any')
url='https://pypi.org/project/click-config-file/#files'
license=('MIT')
depends=('python' 'python-click' 'python-configobj')
makedepends=('python-setuptools' 'python-pip' 'python-wheel')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('b2d758b2a0ecb059038a1d2801f03fc373ccd47f5ae5e01b875a93e96d73fc17d8562c65f9e450485d8282007783215bf7110257dda5188970e7c5d0f5492a20')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

